package com.taobao.snowsnow.hibernate.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * <b>大类</b>
 * @author tux
 *
 */
public class Category implements java.io.Serializable {

	private static final long serialVersionUID = 3383357524843396741L;
	private Integer id;
	private String name;
	private String descs;
	private List<Type> types = new ArrayList<Type>();

	public Category() {
	}

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", descs=" + descs
				+ "]";
	}
	
	public Category(String name) {
		this.name = name;
	}

	public Category(String name, String descs) {
		this.name = name;
		this.descs = descs;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescs() {
		return this.descs;
	}

	public void setDescs(String descs) {
		this.descs = descs;
	}

	public List<Type> getTypes() {
		return types;
	}

	public void setTypes(List<Type> types) {
		this.types = types;
	}
}